package vip.liux.front.application.service.product;

import lombok.Data;
import org.apache.commons.lang.math.RandomUtils;
import vip.liux.contracts.shared.enums.Status;

import java.math.BigDecimal;

@Data
public class GoodsDto {

    /**
     * 商品编号 (SPU)
     */
    private String goodsCode;

    /**
     * 三级类目编号
     */
    private String catNo;

    /**
     * 一级类目编号
     */
    private String catRootNo;

    /**
     * 二级类目编号
     */
    private String catParentNo;

    /**
     * 商品品牌编号
     */
    private String brandNo;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品描述
     */
    private String desc;

    /**
     * 销售价
     */
    private BigDecimal salePrice = BigDecimal.valueOf(RandomUtils.nextInt(100));

    /**
     * 商品库存总量
     */
    private Integer stockTotal;

    /**
     * 商品图片列表
     */
    private String image = "https://www.bing.com/images/search?view=detailV2&ccid=Af%2bGvzox&id=8F65F57259353F6B29247A04A554B750640D673C&thid=OIP.Af-GvzoxcWG6jGQBW-oGgAHaKx&mediaurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.01ff86bf3a317161ba8c64015bea0680%3frik%3dPGcNZFC3VKUEeg%26riu%3dhttp%253a%252f%252fn.sinaimg.cn%252fsinacn%252f251%252fw1080h1571%252f20191002%252f039a-ifmectk5810174.jpg%26ehk%3dKPtHsQWelTzYtio%252fihzNKGttvS0RSJjmafTnk%252baW6XY%253d%26risl%3d%26pid%3dImgRaw%26r%3d0&exph=1571&expw=1080&q=%e9%bb%91%e4%b8%9d&simid=608051960167363476&FORM=IRPRST&ck=99C03BFC7B17E3A59995030B20CF2FAD&selectedIndex=4&itb=0";

    /**
     * 商品状态 (启用/禁用)
     */
    private Status status;
}
